/*
 * @Description: 边框样式
 * @Author: linpan(45650368@qq.com)
 * @Date: 2022-11-23 14:26:13
 * @LastEditors: vusui 45650368@qq.com
 * @LastEditTime: 2023-07-18 09:59:43
 * @WebSite: https://vusui.com
 * @Copyright: 2017-present The Vusui Authors
 * @Readme: 开源不易，且用且珍惜！
 */
// @use "sass:math";

// 基础
@for $i from 0 through 10 {
  @if $i != 0 {
    #{$v}border-#{$i} {
      border-width: 0;
      border-style: solid;
      border-color: $border-color;
    }
    #{$v}border-l-#{$i} {
      border-width: 0;
      border-style: solid;
      border-color: $border-color;
    }
    #{$v}border-t-#{$i} {
      border-width: 0;
      border-style: solid;
      border-color: $border-color;
    }
    #{$v}border-r-#{$i} {
      border-width: 0;
      border-style: solid;
      border-color: $border-color;
    }
    #{$v}border-b-#{$i} {
      border-width: 0;
      border-style: solid;
      border-color: $border-color;
    }
  }
}

// 边框大小
@for $i from 0 through 10 {
  @if $i != 0 {
    #{$v}border-#{$i} {
      border-width: #{$i * 2}rpx;
    }
    #{$v}border-l-#{$i} {
      border-left-width: #{$i * 2}rpx;
    }
    #{$v}border-t-#{$i} {
      border-top-width: #{$i * 2}rpx;
    }
    #{$v}border-r-#{$i} {
      border-right-width: #{$i * 2}rpx;
    }
    #{$v}border-b-#{$i} {
      border-bottom-width: #{$i * 2}rpx;
    }
  } @else {
    #{$v}border-0 {
      border: 0;
    }
    #{$v}border-l-0 {
      border-left-width: 0;
    }
    #{$v}border-t-0 {
      border-top-width: 0;
    }
    #{$v}border-r-0 {
      border-right-width: 0;
    }
    #{$v}border-b-0 {
      border-bottom-width: 0;
    }
  }
}

#{$v}border-05 {
  border-width: 0.5rpx;
}
#{$v}border-l-05 {
  border-left-width: 0.5rpx;
}
#{$v}border-t-05 {
  border-top-width: 0.5rpx;
}
#{$v}border-r-05 {
  border-right-width: 0.5rpx;
}
#{$v}border-b-05 {
  border-bottom-width: 0.5rpx;
}

#{$v}border-solid {
  border-style: solid;
}
#{$v}border-dashed {
  border-style: dashed;
}
#{$v}border-dotted {
  border-style: dotted;
}
